package com.yesido.moshi.moshi23.single.lanhan;

/**
 * @author yesido
 * @description 懒汉式加载
 * @date 2023-06-12 12:05
 * @Version 8.3
 */
public class SingleTon4 {
    private SingleTon4() {
    }

    private static SingleTon4 instance;

    // 线程安全
    public static synchronized SingleTon4 getInstance() {
        if (instance == null) {
            instance = new SingleTon4();
        }
        return instance;
    }
}
